package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
    * 联络灯请求详情表
    */
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="联络灯请求详情表")
@Data
@Accessors(chain = true)
@TableName(value = "lamp_request_detail")
public class LampRequestDetail extends PublicPo implements Serializable {

    /**
     * 联络灯请求详情表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="联络灯请求详情表id",hidden = true)
    private Long id;

    /**
     * 联络灯请求表id(lamp_request表id)
     */
    @TableField(value = "lamp_request_id")
    @ApiModelProperty(value="联络灯请求表id(lamp_request表id)")
    private Long lampRequestId;

    /**
     * 消息内容
     */
    @TableField(value = "content")
    @ApiModelProperty(value="消息内容")
    private String content;

    /**
     * 创建人(user表id)
     */
    @TableField(value = "create_user")
    @ApiModelProperty(value="创建人(user表id)",hidden = true)
    private Integer createUser;

    /**
     * 创建人名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value="创建人名称")
    private String createUserName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_user")
    @ApiModelProperty(value="更新人",hidden = true)
    private Integer updateUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value="更新时间",hidden = true)
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}